package lab02;

public class Zelos implements Boss{

    private String name = "Zelos";
    private int h;

    public Zelos(int h) {
        this.h = h;
    }

    @Override
    public void attack() {
        System.out.println("Zelos："+name+"当前血量："+h);
        System.out.println(name+"发动攻击！");
    }

    @Override
    public void move() {
        System.out.println("Boss:"+this.name+"飞行移动中~");
    }

    @Override
    public void addBlood() {
        if(h<10){
            h+=30;
            System.out.println("补血成功！血量+30，Boss:"+name+"血量剩余："+h+"点。");
        }else {
            System.out.println("补血失败！Boss:"+name+"血量未小于10点！");
        }
    }

}
